
from proxypool.scheduler import Scheduler
import argparse


parser = argparse.ArgumentParser(description='代理池')
parser.add_argument('--processor', type=str, help='运行执行器，入参：tester、getter、server')
args = parser.parse_args()

if __name__ == '__main__':
    # 选择执行器
    if args.processor:
        getattr(Scheduler(), f'run_{args.processor}')()
    else:
        Scheduler().run()